"
"
"
"------  pre define --------
set nocompatible
let $VIM_SCRIPT_HOME="/home/liguifu/env/buildenv/vim-env/vim-ide"

let mapleader = ","

set helplang=cn
set encoding=utf-8
set termencoding=utf-8
set wrap
" search
set incsearch
"set highlight 	" conflict with highlight current line
set ignorecase
set smartcase
set history=1000
set nocompatible
set nofoldenable                                                  " disable folding"
set confirm                                                       " prompt when existing from an unsaved file
set backspace=indent,eol,start                                    " More powerful backspacing
set t_Co=256                                                      " Explicitly tell vim that the terminal has 256 colors "
set mouse=a                                                       " use mouse in all modes
set report=0                                                      " always report number of lines changed                "
set nowrap                                                        " dont wrap lines
set scrolloff=5                                                   " 5 lines above/below cursor when scrolling
set number                                                        " show line numbers
set showmatch                                                     " show matching bracket (briefly jump)
set showcmd                                                       " show typed command in status bar
set title                                                         " show file in titlebar
set laststatus=2                                                  " use 2 lines for the status bar
set matchtime=2                                                   " show matching bracket for 0.2 seconds
set matchpairs+=<:>                                               " specially for html
" set relativenumber
set nobackup
set noswapfile
set wildmenu

" Default Indentation
set autoindent
set smartindent     " indent when
set tabstop=8       " tab width
set softtabstop=8   " backspace
set shiftwidth=8    " indent width
set textwidth=80
" set smarttab
"set expandtab       " expand tab to space
set fileformat=unix

syntax enable
syntax on

"----------------controll --------------
set autoread
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" disbale paste mode when leaving insert mode
au InsertLeave * set nopaste
autocmd BufReadPost * normal! g`"  "实现打开文件时自动恢复上次退出文件时的光标位置

"------  Plugin list  --------
source $VIM_SCRIPT_HOME/bundle.vim

let g:airline#extensions#tabline#enabled = 0
let g:airline#extensions#tabline#buffer_nr_show=0
let g:airline_theme='simple'

"let g:EasyMotion_smartcase = 1
"let g:EasyMotion_startofline = 0 " keep cursor colum when JK motion


"------  Plugin Config  --------
source $VIM_SCRIPT_HOME/MiniBufExpl.vim
source $VIM_SCRIPT_HOME/nerdtree.vim
" source $VIM_SCRIPT_HOME/taglist.vim
source $VIM_SCRIPT_HOME/tagbar.vim
" source $VIM_SCRIPT_HOME/winmanager.vim

source $VIM_SCRIPT_HOME/markbook.vim
source $VIM_SCRIPT_HOME/jumps.vim
source $VIM_SCRIPT_HOME/ctlp.vim
"source $VIM_SCRIPT_HOME/csExplorer.vim
"source $VIM_SCRIPT_HOME/trailing-whitespace.vim

"source $VIM_SCRIPT_HOME/nerdcommenter.vim
"source $VIM_SCRIPT_HOME/autoformat.vim
source $VIM_SCRIPT_HOME/echofunc-config.vim
source $VIM_SCRIPT_HOME/grep-config.vim
source $VIM_SCRIPT_HOME/ctags-config.vim
source $VIM_SCRIPT_HOME/lookupfile-config.vim
source $VIM_SCRIPT_HOME/rainbow-config.vim

source $VIM_SCRIPT_HOME/keymap.vim

source $VIM_SCRIPT_HOME/color.vim

